#pragma once
#include <string>
#include "../../third_libs/iconv/include/iconv.h"

namespace libiconvpp {
	using namespace std;
	class TIconv_impl {
	public:
		TIconv_impl(string sourceEncoding, string targetEncoding);
		~TIconv_impl();
		string translate(string input);
		inline bool is_valid();
	private:
		string src_enc;
		string target_enc;
		iconv_t iconv_handle;
	};
}

